namespace SimpleWebServices.Web.UI.Html
{
    using System;
    using SimpleWebServices.Web.UI.Html.Validation;
    using Xunit;

    public sealed class IValidationFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IValidation).IsInterface);
        }

        [Fact]
        public void IValidation_IsValid_get()
        {
            try
            {
                bool value = (new IValidationDummy() as IValidation).IsValid;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IValidation_Validator_get()
        {
            try
            {
                IValidate value = (new IValidationDummy() as IValidation).Validator;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IValidation_Validator_set()
        {
            try
            {
                (new IValidationDummy() as IValidation).Validator = new IValidateDummy();
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}